package com.study.spring.configuraproperties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author
 * @date 2022年05月08日 14:33
 * @description
 */
@Component
@ConfigurationProperties(prefix = "mycar")
@Data
public class Car {

    private String name;
    private String price;

}
